<?php

    // Load the TGM init if it exists
    if ( file_exists( dirname( __FILE__ ) . '/tgm/tgm-init.php' ) ) {
        require_once dirname( __FILE__ ) . '/tgm/tgm-init.php';
    }

    // Load the embedded Redux Framework
    if ( file_exists( dirname( __FILE__ ).'/kirki/kirki.php' ) ) {
        require_once dirname(__FILE__).'/kirki/kirki.php';
    }

    // Load the theme/plugin options
    if ( file_exists( dirname( __FILE__ ) . '/options-init.php' ) ) {
        require_once dirname( __FILE__ ) . '/options-init.php';
    }

//加载主题更新检测
    require 'theme-updates/theme-update-checker.php';
    $example_update_checker = new ThemeUpdateChecker(
       THEME_NAME,
       'http://www.lmygzs.com/wp-update-server/?action=get_metadata&slug=' . THEME_NAME
    );
